package com.honey.compilation.sql.ddl;

import com.honey.compilation.sql.SqlColumn;
import com.honey.compilation.sql.SqlScript;
import com.honey.compilation.sql.SqlTable;


/**
 * 修改索引名称,非SQL 92定义 
 * @author Administrator
 *
 */
@Deprecated
public  class AlterTableAddUniqueIndex extends AlterTableAddIndex implements SqlScript{
	
	public AlterTableAddUniqueIndex(String tableName) {
		super(tableName);	
		super.setIndexType(IndexType.UNIQUE);
		
	}
	
	/**
	 * 构造函数
	 * @param table 数据库表对象
	 */
	public AlterTableAddUniqueIndex(SqlTable table){
		super(table);
		super.setIndexType(IndexType.UNIQUE);
	}
	
	public AlterTableAddUniqueIndex(String schema,String tableName) {
		super(schema, tableName) ;	
		super.setIndexType(IndexType.UNIQUE);
	}
	
	public AlterTableAddUniqueIndex(String tableName,SqlColumn ...fields) {
		super(tableName, fields) ;
		super.setIndexType(IndexType.UNIQUE);
	}
	
	@Override
	public void setIndexType(IndexType indexType) {
		
	}

	
}
